<template>
  <div id="app">
    <keep-alive exclude="Detail">
      <router-view />
    </keep-alive>

    <tab-bar v-show="$store.state.isnav">
      <tab-bar-item tag="/home">
        <img slot="item-icon" src="~assets/imgs/tabbar/home.svg" />
        <img
          slot="item-icon-active"
          src="~assets/imgs/tabbar/home_active.svg"
        />
        <div slot="item-text">首页</div>
      </tab-bar-item>
      <tab-bar-item tag="/category">
        <img slot="item-icon" src="~assets/imgs/tabbar/category.svg" />
        <img
          slot="item-icon-active"
          src="~assets/imgs/tabbar/category_active.svg"
        />
        <div slot="item-text">分类</div>
      </tab-bar-item>
      <tab-bar-item tag="/shopcart">
        <img slot="item-icon" src="~assets/imgs/tabbar/shopcart.svg" />
        <img
          slot="item-icon-active"
          src="~assets/imgs/tabbar/shopcart_active.svg"
        />
        <div slot="item-text">购物车</div>
      </tab-bar-item>
      <tab-bar-item tag="/profile">
        <img slot="item-icon" src="~assets/imgs/tabbar/profile.svg" />
        <img
          slot="item-icon-active"
          src="~assets/imgs/tabbar/profile_active.svg"
        />
        <div slot="item-text">我的</div>
      </tab-bar-item>
    </tab-bar>
  </div>
</template>
<script>
import tabBar from "components/content/tabbar.vue";
import tabBarItem from "components/content/tabbar/TabBarItem.vue";
export default {
  mame: "App",
  components: {
    tabBar,
    tabBarItem,
  },
  created() {},
};
</script>
<style scoped>
@import "assets/css/base.css";
</style>
